/**
 * Copyright (c) 2018 qar All rights reserved.
 *
 * https://www.qar.io
 *
 * 版权所有，侵权必究！
 */

package com.example.feign;
//
//import com.example.commons.security.user.UserDetail;
//import com.example.commons.tools.constant.ServiceConstant;
//import com.example.model.api.Result;
//import com.example.feign.fallback.UserFeignClientFallbackFactory;
import com.example.constant.ServiceConstant;
import com.example.feign.fallback.UserResourceFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 用户接口
 *
 * @author Mark sunlightcs@gmail.com
 */
@FeignClient(name = ServiceConstant.RESOURCE_SERVER, contextId = "UserResourceFeignClient", fallbackFactory = UserResourceFeignClientFallbackFactory.class)
public interface UserResourceFeignClient {

    /**
     * 根据用户ID，获取用户信息
     */
    @GetMapping("resource/demo/abc")
    String abc();

}